<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  export default {
    name: 'App',
    watch: {
      $route(to,from) {
        if (to.path != '/login') {
          let obj = {
            name: to.name,
            title: to.meta.title
          }
          this.$store.commit('ADD_TABLETABS', obj);
        }
      }
    }
  }
</script>

<style lang="scss">
html,body,#app{
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: $defaultFontSize;
  color: $defaultFontColor;
}
  a{
    color: $defaultFontColor;
    text-decoration: none;
  }
</style>
